package com.warmheart.builder.sys;

import com.warmheart.core.co.base.BaseCoBuilder;
import com.warmheart.core.co.oper.Co;
import com.warmheart.entity.sys.SysDictBase;

/**
 * 
 * @ClassName: SysDictBase
 * @Description: 数据字典实体CoBuilder类，对应表名称为tb_sys_dict_base
 *               温馨提示：不要修改该实体CoBuilder类的任何字段
 * @author ZhangJianyang
 * @date 2025-06-16 09:37:02
 *
 */
public class SysDictBaseCoBuilder extends BaseCoBuilder<SysDictBase, SysDictBaseCoBuilder> {

    private final SysDictBase t;

    @Override
    protected SysDictBaseCoBuilder self() {
        return this;
    }

    @Override
    public SysDictBase core() {
        return this.t;
    }

    public SysDictBaseCoBuilder(SysDictBase sysDictBase) {
        t = sysDictBase;
    }

    /**
     * 字典code
     */
    private Co<SysDictBase, SysDictBaseCoBuilder> dictValue;

    /**
     * 字典值
     */
    private Co<SysDictBase, SysDictBaseCoBuilder> dictName;

    /**
     * 字典类型
     */
    private Co<SysDictBase, SysDictBaseCoBuilder> dictType;

    /**
     * 字典类型名称
     */
    private Co<SysDictBase, SysDictBaseCoBuilder> dictTypeName;

    /**
     * 排序
     */
    private Co<SysDictBase, SysDictBaseCoBuilder> sort;

    public Co<SysDictBase, SysDictBaseCoBuilder> dictValue() {
        if (this.dictValue == null) {
            this.dictValue = new Co<SysDictBase, SysDictBaseCoBuilder>(self(), "dict_value");
        }
        return this.dictValue;
    }

    public Co<SysDictBase, SysDictBaseCoBuilder> dictName() {
        if (this.dictName == null) {
            this.dictName = new Co<SysDictBase, SysDictBaseCoBuilder>(self(), "dict_name");
        }
        return this.dictName;
    }

    public Co<SysDictBase, SysDictBaseCoBuilder> dictType() {
        if (this.dictType == null) {
            this.dictType = new Co<SysDictBase, SysDictBaseCoBuilder>(self(), "dict_type");
        }
        return this.dictType;
    }

    public Co<SysDictBase, SysDictBaseCoBuilder> dictTypeName() {
        if (this.dictTypeName == null) {
            this.dictTypeName = new Co<SysDictBase, SysDictBaseCoBuilder>(self(), "dict_type_name");
        }
        return this.dictTypeName;
    }

    public Co<SysDictBase, SysDictBaseCoBuilder> sort() {
        if (this.sort == null) {
            this.sort = new Co<SysDictBase, SysDictBaseCoBuilder>(self(), "sort");
        }
        return this.sort;
    }
}